<div class="material">
    <form class="w5c-form demo-form"  w5c-form-validate name="material">
        <div class="title">
            <span class="jump-color" ui-sref="main.contractManagement">合约管理 </span>
            <span class="tit-color">/ 编辑合约</span>
        </div>
        <div class="info">
            <div class="authentication">
                <div class="tit">
                    基本信息
                </div>
                <div class="bottom">
                    <ul>
                        <li>
                            <span>帐户名：</span>
                            <span>{{data.userName}}</span>
                        </li>
                        <li>
                            <span>昵称：</span>
                            <span>{{data.nickName}}</span>
                        </li>
                        <li>
                            <span>CP性质：</span>
                            <span>{{table[data.cpType]}}</span>
                        </li>
                        <li>
                            <span>CP类型：</span>
                            <span>{{table[data.cpProperty]}}</span>
                        </li>
                        <li ng-if="data.cpProperty == 13">
                            <span>机构名称：</span>
                            <span>{{data.realName}}</span>
                        </li>
                        <li ng-if="data.cpProperty == 12">
                            <span>真实姓名：</span>
                            <span>{{data.realName}}</span>
                        </li>

                    </ul>
                </div>

            </div>
            <div class="balance">
                <div class="tit">
                    合约内容
                </div>
                <div class="bottom">
                    <ul>
                        <li>
                            <span>甲方名称：</span>
                            <select  ng-model="formData.partyA"  class="personal-select select" ng-init="formData.partyA='600'">
                                <option value="600"  ng-selected="data.partyA==600">北京东方视角文化传媒股份有限公司</option>
                            </select>
                        </li>
                        <li class="form-group">
                            <span> <label  class="control-label"><i class="red-icon">*</i>甲方签署人：</label></span>
                            <input style="margin-left: -4px" type="text" ng-model="formData.signerA" class="contract_input"
                                   ng-value="formData.signerA" name="signerA" required="" ng-minlength="2" ng-maxlength="20" w5c-dynamic-element>
                        </li>
                        <li>
                            <span>乙方名称：</span>
                            <span>{{data.realName}}</span>
                        </li>
                        <li class="form-group">
                            <span> <label  class="control-label"><i class="red-icon">*</i>乙方签署人：</label></span>
                            <input style="margin-left: -4px" type="text" class="contract_input"  ng-model="formData.signerB" ng-value="formData.signerB"
                                   name="signerB" required="" ng-minlength="2" ng-maxlength="20" w5c-dynamic-element>
                        </li>
                        <li class="form-group">
                            <span><label  class="control-label"><i class="red-icon">*</i>签署日期：</label></span>
                            <p  style="display: inline-block;position: relative;">
                                <input type="text" style="width: 209px" uib-datepicker-popup="yyyy-MM-dd" ng-value="time" ng-model="time" name="time"  show-weeks="false" is-open="item.openedStart" datepicker-options="item.startDateOpt" close-text="关闭" clear-text="清除" current-text="今天" placeholder="开始时间" readonly>
                            <span class="input-group-btn calendar_button">
                                <button type="button" class="btn btn-default" ng-click="openStart(item)">
                                    <i class="glyphicon glyphicon-calendar"></i>
                                </button>
                            </span>
                            </p>
                            <input type="hidden" name="time" required="" ng-model="time">
                        </li>
                        <li  class="form-group">
                            <span><label  class="control-label"><i class="red-icon">*</i>合约有效期：</label></span>
                            <div style="display: inline-block">
                                <input ims-select-range-time="rangeDate" type="text">
                                <input ng-model="formData.startDate" required name="rangeDate" type="hidden">
                            </div>

                        </li>
                        <li>
                            <span style="float: left">备注：</span>
                            <textarea  ng-model="formData.memo" name="memo" ng-maxlength="400" w5c-dynamic-element> </textarea>
                        </li>
                        <li class="form-group">
                            <span style="float: left"> <label  class="control-label"><i class="red-icon">*</i>合约文件：</label></span>
                            <div style="display: inline-block;">
                                <i class="fa fa-file-pdf-o adobe"  aria-hidden="true"></i>
                                <label>
                                    <span class="choose_CP">上传</span>
                                    <input type="file" id="contractLoad"  nv-file-select  uploader="contract" style="display: none" >
                                </label>
                                <a target=_blank ng-href="{{formData.fileUrl}}">点击预览</a>
                                <div style="color: red">{{imageMsg}}</div>
                            </div>
                        </li>
                        <li>
                            <div style="width: 40px;height: 40px;margin-left:110px ">
                                <img  width="100%" height="100%" ng-show="contractLoading" class="loading_pic" src="image/load.gif">
                            </div>

                        </li>
                    </ul>
                </div>
            </div>

            <div class="auditing">
                <div class="text-center">
                    <span class="btn btn-primary" style="width: 90px" w5c-form-submit="submit()" >提交</span>
                    <span class="btn ims-btn" style="width: 90px" ng-click="cancel()" >取消</span>
                </div>
                <div style="height: 30px"></div>
            </div>
        </div>
    </form>
</div>
